package exception;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ThrowsDemo {
    public void doSome() throws IOException, AWTException {
    }
}

class SubClass extends ThrowsDemo {
    //public void doSome(){}

    //public void doSome() throws IOException{}

    public void doSome() throws FileNotFoundException {
    }
    //不允许额外异常，不允许抛父类异常
}
